home *** CD-ROM | disk | FTP | other *** search
- #include <stdlib.h>
- #include <ctype.h>
- #include "random.h"
- //Select a random number generator not known by outsiders
- //Anyone who knows the random number generator can guess the
- //session handles of the serer and violate he security.
- UINT random(UINT seed)
- {
- srand(seed);
- return rand();
- }